package com.zeus.base.smscenter.mapper;

import com.zeus.base.smscenter.common.mapper.IBaseMapper;
import com.zeus.base.smscenter.model.SmsSupplier;

/**
 * 短信设定 Mapper
 */
public interface SupplierMapper extends IBaseMapper<SmsSupplier> {

    /**
     * 获取单条数据
     *
     * @param id
     * @return
     */
    SmsSupplier selectByPrimaryKey(String id);

    /**
     * 获取单条数据(租户code)
     *
     * @param code
     * @return
     */
    SmsSupplier selectByCode(String code);

    /**
     * 获取供应商信息(租户code,供应商,平台)
     *
     * @param smsSupplier

     * @return
     */
    SmsSupplier existByCodeSuppNoAppForm(SmsSupplier smsSupplier);

    /**
     * 删除数据
     *
     * @param smsSupplier
     * @return
     */
    int deleteByKeyId(SmsSupplier smsSupplier);

    /**
     * 删除数据
     *
     * @param smsSupplier
     * @return
     */
    int deleteByTenantCode(SmsSupplier smsSupplier);
}